package beautiful.butterfly.execute_engine;

public class TimeUnit {

    public static void sleepNSecondsIgnoreInterruptedException(long timeout) {
        try {
            java.util.concurrent.TimeUnit.SECONDS.sleep(timeout);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    public static void sleepNMillisecondsIgnoreInterruptedException(long timeout) {
        try {
            java.util.concurrent.TimeUnit.MILLISECONDS.sleep(timeout);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
